﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using eventr.View;
using System.ComponentModel;

namespace eventr.Model
{
    public partial class AssetResult : SuperDeepZoom.ISpecialImageOverlayData
    {
        public void PauseSlideshow()
        {
            if (Pause != null)
            {
                Pause(this, EventArgs.Empty);
            }
        }

        public void ResumeSlideshow()
        {
            if (Resume != null)
            {
                Resume(this, EventArgs.Empty);
            }
        }

        private bool viewed = false;
        public bool Viewed
        {
            get
            {
                return viewed;
            }
            set
            {
                viewed = value;
                OnPropertyChanged("Viewed");
            }
        }

        public string DeepZoomTileKey { get; set; }

        #region INotifyPropertyChanged Members

        protected void OnPropertyChanged(string property)
        {
            if (PropertyChanged != null)
            {
                PropertyChanged(this, new PropertyChangedEventArgs(property));
            }
        }

        //public event PropertyChangedEventHandler PropertyChanged;

        #endregion

        #region ISpecialImageOverlayData Members

        public event EventHandler Pause;

        public event EventHandler Resume;

        #endregion
    }

    public partial class AssetPropertyValue
    {
        public override string ToString()
        {
            return Name + ":" + Value;
        }
    }

    public partial class RefinementValue
    {
        public RefinementValue(string group, string displayGroup , string value, string token)
        {
            Group = group;
            DisplayGroup = displayGroup;
            Value = value;
            Token = token;
        }
    }
}
